package com.demo.studentmanager.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.demo.studentmanager.dto.CourseListDto;
import com.demo.studentmanager.entity.Course;
import com.demo.studentmanager.vo.CourseVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author ZHB
 * @version 1.0.0
 * @date Create in 2020/11/19
 */

@Repository
public interface CourseMapper extends BaseMapper<Course> {

    /**
     * 课程表增删改查数据访问
     *
     * @param page
     * @param courseListDto
     * @return
     */
    IPage<CourseVO> getCourseList(Page<CourseVO> page, @Param("courseSearch") CourseListDto courseListDto);


}

